/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Emanuel
 */
@Entity
@Table(name = "admins")
@NamedQueries({@NamedQuery(name = "Admins.findAll", query = "SELECT a FROM Admins a"), @NamedQuery(name = "Admins.findByIdADMINS", query = "SELECT a FROM Admins a WHERE a.idADMINS = :idADMINS"), @NamedQuery(name = "Admins.findByLogin", query = "SELECT a FROM Admins a WHERE a.login = :login"), @NamedQuery(name = "Admins.findByPass", query = "SELECT a FROM Admins a WHERE a.pass = :pass")})
public class Admins implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idADMINS")
    private Integer idADMINS;
    @Column(name = "LOGIN")
    private String login;
    @Column(name = "PASS")
    private String pass;

    public Admins() {
    }

    public Admins(Integer idADMINS) {
        this.idADMINS = idADMINS;
    }

    public Integer getIdADMINS() {
        return idADMINS;
    }

    public void setIdADMINS(Integer idADMINS) {
        this.idADMINS = idADMINS;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idADMINS != null ? idADMINS.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Admins)) {
            return false;
        }
        Admins other = (Admins) object;
        if ((this.idADMINS == null && other.idADMINS != null) || (this.idADMINS != null && !this.idADMINS.equals(other.idADMINS))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.Admins[idADMINS=" + idADMINS + "]";
    }

}
